// 挂载全局变量
import React from 'react';

import * as UI from 'antd-mobile';
import * as Icons from 'antd-mobile-icons';
import Cookies from 'react-cookies';
import { success, fail } from '@/tools/tools';
import request from '@/services/request';

// 全局挂载UI框架和图标
React.UI = UI;
React.Icons = Icons;
React.Cookies = Cookies;
React.success = success;
React.fail = fail;
React.Http = request;

// 用户信息
React.business = React.Cookies.load('business');